Skip to content

Add deterministic route_sort_day agent tool - #9

Open
RCF-117 wants to merge 3 commits into
kaikkd:mainfrom
RCF-117:codex/route-sort-day-tool
Open

Add deterministic route_sort_day agent tool#9
RCF-117 wants to merge 3 commits into
kaikkd:mainfrom
RCF-117:codex/route-sort-day-tool

Conversation

@RCF-117

@RCF-117 RCF-117 commented Jul 2, 2026

Copy link
Copy Markdown

Summary

  • add a small app.tools package as the first deterministic agent-tool surface
  • add tool-level schemas (ToolPOI, RouteStop, RouteSortResult, RouteSortWarning)
  • support Chinese/English stop-role normalization through normalize_stop_role
  • sort same-day attractions with nearest-neighbor routing while keeping meal/hotel roles on a day backbone
  • return structured warnings with severity so a future harness can decide whether to continue, degrade, or retry

Notes

  • This tool is offline and deterministic: it does not call an LLM, AMap, or any paid API.
  • It does not assign meal times. Callers should provide breakfast/lunch/dinner roles explicitly.
  • category=play and category=stay can be used as low-severity role fallback; category=eat is intentionally not guessed as a specific meal slot.
  • The existing workflow is not wired to this tool yet, so current product behavior remains unchanged.

Validation

  • uv run pytest tests/test_route_sort_day_tool.py -> 8 passed
  • uv run pytest -> 63 passed

@RCF-117 RCF-117 closed this Jul 2, 2026
@RCF-117 RCF-117 reopened this Jul 2, 2026
@RCF-117
RCF-117 marked this pull request as ready for review July 7, 2026 07:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant